package com.flymobi.service;

import java.util.List;

import com.flymobi.fw.modules.CommonService;
import com.flymobi.po.PageBlock;
import com.flymobi.util.QL;

public class PageBlockService extends CommonService {
	
	public List<PageBlock> list(int startRow, int pagePerSize) {
		return dao.find(PageBlock.class, QL.HQL.PageBlock.LIST, new Object[] {},startRow, pagePerSize);
	}
	
	public Long getCount() {
		return dao.getCount(QL.HQL.PageBlock.GET_COUNT, new Object[] {});
	}

	public void save(PageBlock PageBlock) {
		dao.save(PageBlock);
	}

	public PageBlock load(String id) {
		return dao.load(PageBlock.class, new Long(id));
	}
	
	public PageBlock get(String id) {
		return dao.get(PageBlock.class, new Long(id));
	}

	public void delete(String id) {
		dao.delete(this.get(id));
	}
}
